﻿using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JoeyLibs.Utility.Log
{
    /// <summary>
    /// 警告信息或性能问题的日志实体
    /// </summary>
    public class WarnLogModel : LogModel
    {
        protected override ILog Log
        {
            get
            {
                return GetLogger("WarnLogger");
            }
        }

        public WarnLogModel(string message, string reason = "", string solution = "")
            : base(message)
        {
            base.Reason = reason;
            base.Solution = solution;
        }

        public override void Output()
        {
            Log.Warn(LogUtility.GetLogMessage(this));
        }
    }
}
